﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="GoodItemOut.ascx.cs" Inherits="Controls_Activity_GoodItemOut" %>
 <%@ Register Src="GoodItemSelect.ascx" TagName="GoodItemSelect" TagPrefix="uc1" %>
 
<div class="webPanelBorder" > 
    <div class="webPanelCaption">具体物料项</div>
    <div class="webPanelContent">
        <ofcc:GridView ID="gridViewItems" runat="server" AutoGenerateColumns="False" 
         OnRowDataBound="gridViewItems_RowDataBound" onrowdeleting="gridViewItems_RowDeleting" >
        <Columns>
            <asp:HyperLinkField DataTextField="GoodsCode" HeaderText="物料编号" NavigateUrl="#" Target="_blank" />
            <asp:BoundField DataField="Subject" HeaderText="物料名称" />
            <asp:BoundField DataField="CategoryName" HeaderText="物料类型" />
            <asp:BoundField DataField="GoodsMaker" HeaderText="品牌厂商" />
            <asp:BoundField DataField="TypeModel" HeaderText="规格型号" />
            <asp:TemplateField HeaderText="数量">
                    <ItemTemplate>
                        <asp:HiddenField ID ="GoodsID" runat="server" Value='<%#Eval("GoodsID") %>' />
                        <asp:TextBox ID="GoodsCount" runat="server" CssClass="smallInput" Width="80" value='<%#DataBinder.Eval(Container.DataItem,"GoodsCount")%>' name="GoodsCount" type="text" ></asp:TextBox> 
                        <%#DataBinder.Eval(Container.DataItem, "GoodsUnit")%>
                    </ItemTemplate>
                </asp:TemplateField>
            <asp:TemplateField HeaderText="备注">
                    <ItemTemplate>
                        <asp:TextBox ID="Description" runat="server" CssClass="smallInput" Width="120" value='<%#DataBinder.Eval(Container.DataItem,"Description")%>' name="Description" type="text" ></asp:TextBox> 
                    </ItemTemplate>
            </asp:TemplateField>    
            <asp:BoundField DataField="ActiveCount" HeaderText="库存数量" />
            <asp:CommandField ShowDeleteButton="true" DeleteText="删除" />
        </Columns>
        </ofcc:GridView>
    </div>
</div>
<uc1:GoodItemSelect ID="GoodItemSelect" runat="server" /> 